package com.example.vue20220225.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class Role extends Mypage {

    @TableId(value = "role_id",type = IdType.AUTO)
    private Integer roleId;
    private String roleName;

    @TableField(exist = false)
    private String pownames;
    @TableField(exist = false)
    List<Power> powers = new ArrayList<>();


}
